package cn.imnu.legalaid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 法律文书模板表
 * @TableName document_templates
 */
@TableName(value ="document_templates")
@Data
public class DocumentTemplates {
    /**
     * 法律文书模板表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 模板类型
     */
    @TableField(value = "category")
    private Object category;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 是否公开
     */
    @TableField(value = "is_public")
    private Integer is_public;

    /**
     * 创建者id
     */
    @TableField(value = "created_by")
    private Integer created_by;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime created_at;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updated_at;
}